package com.dreamwhale.machinery.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Author
 * @since 2020-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("vip_user_info")
public class VipUserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 会员id
     */
    private Integer vid;

    /**
     * 用户id
     */
    private Integer uid;

    /**
     * 创建订单时间
     */
    private LocalDateTime createTime;

    /**
     * 创建订单支付订单时间
     */
    private LocalDateTime payTime;

    /**
     * 会员过期时间
     */
    private LocalDateTime expirationTime;

    /**
     * 会员订单
     */
    @TableId(value = "pay_order_id", type = IdType.NONE)
    private String payOrderId;

    /**
     * 金额
     */
    private BigDecimal payMoney;


}
